package com.dfrz.ch10.object;

/**
 * 作者：wangmaokang
 * 日期: 2021/4/20 15:35
 * 描述:
 */
public class FishMain {
    public static void main(String[] args) {
        Fish fish=new Fish("小黄鱼");
        Fish fish1=new Fish("小黄鱼");
//        try {
////            Fish fish2= (Fish) fish1.clone();
//        } catch (CloneNotSupportedException e) {
//            e.printStackTrace();
//        }


        System.out.println(fish.equals(fish1));;
        System.out.println(fish);

//        String s1=new String("111");
//        String s2=new String("111");
//        System.out.println(s2.equals(s1));
    }
}
